package com.relsell.view.phone;

import com.relsell.tmcprototype.R;

import android.app.Activity;
import android.os.Bundle;

import android.view.animation.Animation;
import android.view.animation.TranslateAnimation;
import android.widget.TextView;

public class Marquee {

	public static Animation animationToLeft() {
		Animation animationToLeft = new TranslateAnimation(400, -400, 0, 0);
		animationToLeft.setDuration(12000);
		animationToLeft.setRepeatMode(Animation.RESTART);
		animationToLeft.setRepeatCount(Animation.INFINITE);

		return animationToLeft;
	}

	public static Animation animationToRight() {
		Animation animationToRight = new TranslateAnimation(-400, 400, 0, 0);
		animationToRight.setDuration(12000);
		animationToRight.setRepeatMode(Animation.RESTART);
		animationToRight.setRepeatCount(Animation.INFINITE);

		return animationToRight();
	}

}
